//
//  HOMessageEntity.m
//  WeiDu_1_0
//
//  Created by foguo-mac-1 on 01/07/16.
//  Copyright (c) 2016 WeiDu Energy Tech. All rights reserved.
//

#import "HOMessageEntity.h"
#import "HOConstants.h"

@implementation HOMessageEntity

- (void)parseDic:(NSDictionary *)dic
{
	self.messageId = [[dic objectForKey:kHO_FIELD_MessageId] intValue];
	self.title = [dic objectForKey:kHO_FIELD_Title];
	self.message = [dic objectForKey:kHO_FIELD_Message];
	self.createTime = [[dic objectForKey:kHO_FIELD_CreateTime] doubleValue];
	self.isRead = YES;// [[dic objectForKey:kHO_FIELD_Isread] boolValue];
	self.orderId = [[dic objectForKey:@"Orderid"] intValue];
	self.orderType = [[dic objectForKey:@"OrderType"] intValue];
	self.companyId = [NSString stringWithFormat:@"%d", [[dic objectForKey:kHO_FIELD_CompanyID] intValue]];
}

- (void)dealloc
{
	self.message = nil;
	self.title = nil;
    [super dealloc];
}
@end
